package org.toolbook.controller;

import java.io.File;

import org.toolbook.util.LogUtil;

import com.jfinal.core.Controller;
import com.jfinal.kit.PathKit;
/**
 * 工具Action
 * @author meigang
 * @date 2015-06-25 16:13
 *
 */
public class UtilsController extends Controller{
	/**
	 * 加载图片，通过servlet
	 */
	public void loadImg(){
		String lookPhotoPath = getPara("lookPhotoPath");
		LogUtil.log.info("loadImg:"+lookPhotoPath);
		renderFile(new File(PathKit.getWebRootPath() + lookPhotoPath));
	}
}
